﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SweetSQL.Data
{
    /// <summary>
    /// Attribute for applying the Sql table name to a class
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
    public sealed class TableAttribute : Attribute
    {
        /// <summary>
        /// If true, no modification is applied to the table name.  Otherwise different connections may add [], ``, etc.
        /// </summary>
        public bool IsFullyQualified
        {
            get;
            set;
        }

        /// <summary>
        /// Name of the table, defaults to class name if left blank
        /// </summary>
        public string Name
        {
            get;
            set;
        }
    }
}
